{extend name="public/base"}

{block name="title"}就行天下-个人中心{/block}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/home/css/personal.css" />
{/block}


{block name="main"}
<div class="pageControl personal-main bg-f7">
    <div class="main-top"></div>
    <div class="msui_nav msui_navTop">
        <!--<a class="msui_navTop-back" href="javascript:history.back();"><i class="micon-back"></i></a>-->
        <h1 class="msui_navTop-title">个人中心</h1>
        <a href="" class="msui_navTop-right msui_navTop-cnav"><i class="micon-cnav"></i></a>
    </div>
    <div class="personal-top">
        <img src="__STATIC__/home/images/personal1.png" alt="">
        <div class="weui-cell noBorder">
            <div class="weui-cell__hd">
                <img src="{$data.headimgurl}" alt="">
            </div>
            <div class="weui-cell__bd">
                <p class="cl-f">{$data.nickname}</p>
                <div class="cl-f informationImg my-flex">
                    <div>
                        <!--已认证个人信息-->
                        <img src="__STATIC__/home/images/p1.png" alt="">
                        <!--没有认证个人信息-->
                        <!--<img src="../static/images/pn1.png" alt="">-->
                    </div>
                    <div>
                        <!--已认证店铺信息-->
                        <img src="__STATIC__/home/images/p2.png" alt="">
                        <!--没有认证店铺信息-->
                        <!--<img src="../static/images/pn2.png" alt="">-->
                    </div>
                    <div>
                        <!--已认证经销商信息-->
                        <img src="__STATIC__/home/images/p3.png" alt="">
                        <!--没有认证经销商信息-->
                        <!--<img src="../static/images/pn3.png" alt="">-->
                    </div>
                    <div>
                        <!--已认证合伙人信息-->
                        <img src="__STATIC__/home/images/p4.png" alt="">
                        <!--没有认证合伙人信息-->
                        <!--<img src="../static/images/pn4.png" alt="">-->
                    </div>
                </div>
            </div>
            <div class="weui-cell__ft">
                <div class="btn_div">
                    {eq name="data.registration" value="200"}
                    <button class=""  id="no_qd">签到</button>
                    {else /}
                    <button class="open-popup" data-target="#Popqd2" id="qd_over" style="display:block;">已签到</button>
                    {/eq}
                </div>
            </div>
        </div>
    </div>
    <div class="my-flex bg-fff" style="    border-bottom: 1px solid #FF1400;">
        <a href="javascript:;" class="flex-list250">
            <div class="my-flex">
                <img src="__STATIC__/home/images/personal2.png" alt="">
                <p>琼露</p>
            </div>
            <div>
                <p class="fs065 cl-6666"><span>{$data.integral}</span>滴</p>
            </div>
        </a>
        <a href="javascript:;" class="flex-list250">
            <div class="my-flex">
                <img src="__STATIC__/home/images/personal3.png" alt="">
                <p>优惠券</p>
            </div>
            <div>
                <p class="fs065 cl-6666"><span>1</span>张</p>
            </div>
        </a>
        <a href="{:url('wallet/index')}" class="flex-list250">
            <div class="my-flex">
                <img src="__STATIC__/home/images/personal4.png" alt="">
                <p>钱包</p>
            </div>
            <div>
                <p class="fs065 cl-6666"><span>{$data.money}</span>元</p>
            </div>
        </a>
        <a href="{:url('activity/index')}" class="flex-list25" style="background: #FF1400; color: #fff; border-right: 1px solid #ff1400;">
            <div>
                <p>我的约酒</p>
            </div>
        </a>
    </div>
    <div class="weui-cells personal-ul">
        <a href="{:url('member_info')}" class="weui-cell weui-cell_access">
            <div class="weui-cell_-hd">
                <img src="__STATIC__/home/images/personal6.png" alt="">
            </div>
            <div class="weui-cell__bd">
                <span>个人信息</span>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <a href="{:url('rong/index')}" class="weui-cell weui-cell_access">
            <div class="weui-cell_-hd">
                <img src="__STATIC__/home/images/personal7.png" alt="">
            </div>
            <div class="weui-cell__bd">
                <span>通知</span>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <a href="{:url('order/index')}" class="weui-cell weui-cell_access">
            <div class="weui-cell_-hd">
                <img src="__STATIC__/home/images/personal8.png" alt="">
            </div>
            <div class="weui-cell__bd">
                <span>订单</span>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
        <!--<a href="" class="weui-cell weui-cell_access">-->
            <!--<div class="weui-cell_-hd">-->
                <!--<img src="__STATIC__/home/images/personal9.png" alt="">-->
            <!--</div>-->
            <!--<div class="weui-cell__bd">-->
                <!--<span>退款/售后</span>-->
            <!--</div>-->
            <!--<div class="weui-cell__ft"></div>-->
        <!--</a>-->
        <!--<a href="" class="weui-cell weui-cell_access">-->
            <!--<div class="weui-cell_-hd">-->
                <!--<img src="__STATIC__/home/images/personal10.png" alt="">-->
            <!--</div>-->
            <!--<div class="weui-cell__bd">-->
                <!--<span>投诉</span>-->
            <!--</div>-->
            <!--<div class="weui-cell__ft"></div>-->
        <!--</a>-->
        <!--<a href="" class="weui-cell weui-cell_access">-->
            <!--<div class="weui-cell_-hd">-->
                <!--<img src="__STATIC__/home/images/personal11.png" alt="">-->
            <!--</div>-->
            <!--<div class="weui-cell__bd">-->
                <!--<span>我的分销</span>-->
            <!--</div>-->
            <!--<div class="weui-cell__ft"></div>-->
        <!--</a>-->
        <!--<a href="" class="weui-cell weui-cell_access">-->
            <!--<div class="weui-cell_-hd">-->
                <!--<img src="__STATIC__/home/images/personal12.png" alt="">-->
            <!--</div>-->
            <!--<div class="weui-cell__bd">-->
                <!--<span>客服</span>-->
            <!--</div>-->
            <!--<div class="weui-cell__ft"></div>-->
        <!--</a>-->
        <a href="{:url('set/index')}" class="weui-cell weui-cell_access">
            <div class="weui-cell_-hd">
                <img src="__STATIC__/home/images/personal13.png" alt="">
            </div>
            <div class="weui-cell__bd">
                <span>设置</span>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
    </div>
    <div class="my-flex mtop08">
        <a href="{:url('shop/index')}" class="flex-list33">
            <div>
                <img src="__STATIC__/home/images/personal14.png" alt="">
            </div>
            <div>
                <span>店铺</span>
            </div>

        </a>
        <a href="" class="flex-list33">
            <div>
                <img src="__STATIC__/home/images/personal15.png" alt="">
            </div>
            <div>
                <span>经销商</span>
            </div>

        </a>
        <a href="" class="flex-list33">
            <div>
                <img src="__STATIC__/home/images/personal16.png" alt="">
            </div>
            <div>
                <span>合伙人</span>
            </div>

        </a>
    </div>
</div>
<!--签到弹窗-->
<!--<div id="Popup2" class="weui-popup__container popup-bottom">-->

<div id="Popqd1" class="weui-popup__container">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal touming">
        <div class="tanchuang_div" >
            <div class=" signImg">
                <img src="__STATIC__/home/images/personal17.png" alt="">
                <div class="signImg-title">
                    <div class="solid_mid">
                        <span class="solid_sp"></span>
                        <p class="fs065 lxqd">签到得琼露</p>
                        <span class="solid_sp"></span>
                    </div>

                    <p class="magicB fs08"><span class="fs12 ">+10</span> 滴</p>
                    <p class="fs065 lxqd">每日签到可以获得10滴琼露</p>
                    <button class="close-popup qdbtn fs08" id="zhidaole">知道了</button>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="Popqd2" class="weui-popup__container">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal touming">
        <div class="tanchuang_div2" >
            <p>今天已签到过了</p>
            <p>请明天再来吧</p>
            <button class="close-popup qdbtn1 fs08">确定</button>

        </div>
    </div>
</div>
{/block}

{block name="javascript"}
<script>
    $(function(){
        $('#zhidaole').on('click',function(){
            window.location.reload();
        });
        $('#no_qd').click(function () {
            $.get('{:url("registration/index")}', function (msg) {
                if (msg.code == 200) {
                    $('#Popqd1').popup();
                    var signHeight=parseFloat($('.signImg-title').css('height'));
                    $('.signImg-title').css('margin-top',-signHeight/2);
                } else {
                    $.toptip('系统繁忙', 'error');
                }
            }, 'json');
        });
    })
</script>
{/block}